package cn.edu.scau.cmi.hexiaoqing.interProgramming;

public class Singleton {
	static private Singleton instance;
	private String name;

	private Singleton(String name) {
		this.name = name;
	}

	public static Singleton getInstance(String name) {
		if (instance == null && !name.equals(null)) {
			instance = new Singleton(name);
		}
		return instance;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
}
